package com.jxin.mall.member.service.entity.dto.req;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 用户登入返回实体类
 * @author  蔡佳新
 * @version 1.0
 * @since   jdk 1.8
 */
@Data
@Validated
@ApiModel("用户登入信息")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserLoginReqDTO implements Serializable {
    private static final long serialVersionUID = -2508870975099700879L;
    /**账号*/
    @ApiModelProperty(value = "账号")
    private String username;
    /**手机号码*/
    @ApiModelProperty(value = "手机号码")
    private String tel;
    /**密码*/
    @ApiModelProperty(value = "密码")
    @NotNull(message = "密码不能为空")
    private String password;
    /**验证码*/
    @ApiModelProperty(value = "验证码")
    private String authCode;
    /**
     * 登陆类型
     * PC、Android 、IOS
     */
    @ApiModelProperty(value = "登陆类型")
    @NotNull(message = "登陆类型不能为空")
    private String loginType;
    /**设备信息*/
    @ApiModelProperty(value = "设备信息")
    private String deviceInfor;
    /**地址*/
    @ApiModelProperty(value = "地址")
    private String addr;
    /**微信用户信息令牌*/
    @ApiModelProperty(value = "微信用户信息令牌")
    private String wxToken;
    /**QQ用户信息令牌*/
    @ApiModelProperty(value = "QQ用户信息令牌")
    private String qqToken;
}
